You are not logged in.

#1 2012-10-09 17:56:15

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

[SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

I have installed packages xorg-server xorg-xinit xorg-server-utils mesa and xf86-video-ati xf86-input-synaptics.
Then i tried to make X start at boot by edditing ~/.bash_profile to look like this:

[[ -f ~/.bashrc ]] && . ~/.bashrc

vt=$(fgconsole 2> /dev/null)
(( vt == 1 )) && exec startx -- vt$vt &> ~/.xlog
unset vt

When i login in get the following error:

-bash: vt: command not found

I really dont know what is with this error... How can i fix it?

Last edited by 71GA (2012-10-09 19:41:56)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#2 2012-10-09 17:59:26

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

With all due respect, you've been asking for a ton of help on a range of things, all of which are completely non-standard. I would recommend trying to fix them one at a time, doing all the appropriate research before filling the forum with such questions.

Offline

#3 2012-10-09 18:03:51

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

jakobcreutzfeldt wrote:

With all due respect, you've been asking for a ton of help on a range of things, all of which are completely non-standard. I would recommend trying to fix them one at a time, doing all the appropriate research before filling the forum with such questions.

I am asking because i already installed Arch following the same method, but this time i get a weird mistake. This is why i write into a NEWBIE forum.

Last edited by 71GA (2012-10-09 18:09:25)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#4 2012-10-09 18:18:33

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

The error was produced because there should be NO whitespace between "2>" and "/dev/null".
Maybe someone could warn new users to be as precise as this... Or maybee write down in Wiki,
that the code should be copied literally with all whitespaces staying the same.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#5 2012-10-09 18:18:49

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

I just tried this and it worked perfectly for me. I also tried it with a space between 2> and /dev/null, and it still worked.

(edit) Code should always be copied exactly as written. There is no need to state this explicitly here.

Last edited by 2ManyDogs (2012-10-09 18:23:39)

Offline

#6 2012-10-09 18:32:50

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

2ManyDogs wrote:

I just tried this and it worked perfectly for me. I also tried it with a space between 2> and /dev/null, and it still worked.

(edit) Code should always be copied exactly as written. There is no need to state this explicitly here.

Can be done if you install in virtual box, but can't be done if you install on a real machine. In this case i allways have to rewrite the code which takes me a lot of time and i
can produce a mistake. So warning would be ok. I am a teacher and i know, how important is to warn newbies about tricks like this. Too bad you say this is not needed. It is.

I wonder how my students would find an inverse matrix if i wouldn't warn them about applying chekerbord to the reducced matrix before using adjugate formula...


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#7 2012-10-09 18:35:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

What newbies? What are you talking about?
Why do you have to rewrite the code?

Last edited by karol (2012-10-09 18:36:32)

Offline

#8 2012-10-09 18:39:49

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

71GA wrote:

Can be done if you install in virtual box, but can't be done if you install on a real machine.

I ran it on a real machine. I don't use VMs. I even put several spaces between the 2> and /dev/null, and it still worked. It's quite simple to copy code from the wiki to a file on a real machine. I do it all the time, and it's what I did here.

And I stand by my statement that code should always be copied explicitly from the wiki without modification, unless you are absolutely sure you know what you are doing.

I'm tired of arguing with you and helping you with problems you should be able to solve yourself. Good luck.

Last edited by 2ManyDogs (2012-10-09 18:47:44)

Offline

#9 2012-10-09 18:45:53

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

71GA wrote:
2ManyDogs wrote:

I just tried this and it worked perfectly for me. I also tried it with a space between 2> and /dev/null, and it still worked.

(edit) Code should always be copied exactly as written. There is no need to state this explicitly here.

Can be done if you install in virtual box, but can't be done if you install on a real machine. In this case i allways have to rewrite the code which takes me a lot of time and i
can produce a mistake. So warning would be ok. I am a teacher and i know, how important is to warn newbies about tricks like this. Too bad you say this is not needed. It is.

I wonder how my students would find an inverse matrix if i wouldn't warn them about applying chekerbord to the reducced matrix before using adjugate formula...

But the great thing about Arch is that you teach yourself these things. Look, you learned your lesson on your own and it didn't require someone to teach it to you. For example, the problem here seems to be with Bash syntax. We've all taught ourselves Bash here (in fact, my Bash skills greatly improved after moving to Arch, all thanks to my need to fix problems for myself). Of course the forums are here for helping people, even newbies, but the general culture around here is that one tries to fix it oneself first, and clearly explains to everyone else what steps were taken to try to fix the problem before asking for help.

Offline

#10 2012-10-09 19:41:19

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

2ManyDogs wrote:
71GA wrote:

Can be done if you install in virtual box, but can't be done if you install on a real machine.

I ran it on a real machine. I don't use VMs. I even put several spaces between the 2> and /dev/null, and it still worked. It's quite simple to copy code from the wiki to a file on a real machine. I do it all the time, and it's what I did here.

And I stand by my statement that code should always be copied explicitly from the wiki without modification, unless you are absolutely sure you know what you are doing.

I'm tired of arguing with you and helping you with problems you should be able to solve yourself. Good luck.


I meant you can't COPY/PASTE the code from Arch forum.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#11 2012-10-09 19:44:39

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

71GA wrote:

I meant you can't COPY/PASTE the code from Arch forum.

Of course you can. For a shared clipboard in VirtualBox, install the Guest Additions.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#12 2012-10-09 19:57:17

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] Start X at boot unsucessful (-bash: vt: comand not found)

71GA wrote:

Can be done if you install in virtual box, but can't be done if you install on a real machine. In this case i allways have to rewrite the code

DSpider wrote:
71GA wrote:

I meant you can't COPY/PASTE the code from Arch forum.

Of course you can. For a shared clipboard in VirtualBox, install the Guest Additions.

And I copy/paste code on a real test machine all the time. "It is a poor workman who blames his tools."

Offline

Board footer

Powered by FluxBB