Active Topics

 


Reply
Thread Tools
Posts: 309 | Thanked: 115 times | Joined on May 2010 @ Malaysia
#11
well, im guessing u are trying to "chmod" the scripts right?AFAIK, u will need a ".sh" extension on the filename..

eg: chmod +x /home/user/archlinux/archlinux.sh

?

i dunno man..if it's script, then i guess it should include .sh..let's hope for the experts to help yaa.. =)
 

The Following User Says Thank You to one1002 For This Useful Post:
Posts: 196 | Thanked: 224 times | Joined on Sep 2010 @ Africa
#12
Originally Posted by Armand360 View Post
i'm trying to install Archlinux. i have downloaded the scripts (made by Juandp77) and placed it in /home/user. i placed the image in MyDocs. this is the following commands after being in root:

cd /home/user/archlinux
sudo chmod +x /home/user/archlinux/archlinux
sudo chmod +x /home/user/archlinux/chrootarch
sudo chmod +x /home/user/archlinux/startarch
./chrootarch

okay i typed "sudo gainroot", and then proceeded with the commands. after typing all 3 chmod commands (without sudo),
Fine. Then you must exit the root shell, before you run ./chrootarch

it now says "user is not in sudoers file" after typing the "./chrootarch" command. am i doing something wrong, is there something that i didn't do?
Well, it seems the chrootarch script is intended to be run as non-root, and so uses sudo. So, you should not run it as root.
 

The Following User Says Thank You to buchanmilne For This Useful Post:
Posts: 94 | Thanked: 3 times | Joined on Jul 2010
#13
thanks one1002.

okay how do i non-root myself after going in root?
 
Posts: 309 | Thanked: 115 times | Joined on May 2010 @ Malaysia
#14
just type exit..
 
Posts: 94 | Thanked: 3 times | Joined on Jul 2010
#15
now it says "chrootarch" not found.. ahh how i wish i had more knowledge on utilizing x terminal! okay, here's what i did:

sudo gainroot
cd /home/user/archlinux
chmod +x /home/user/archlinux/archlinux
chmod +x /home/user/archlinux/chrootarch
chmod +x /home/user/archlinux/startarch
exit
./chrootarch

after typing "./chrootarch", it said chrootarch not found..
 
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#16
Type this again after typing "exit", before typing "./chrootarch":

cd /home/user/archlinux

When you use sudo gainroot, and then change the directory with the cd command, the directory change doesn't carry over to the non-root shell you started with. So if you start at /home/user (shows us as ~ in terminal when you're non-root), then sudo gainroot, then cd to, say /blah/whatever/blahblah, then exit, you'll "exit" back at /home/user.

That's what's happening here. When you cd to /home/user/archlinux as root, you end up exiting root at wherever you started (default being /home/user on the N900).

So you can either run the first "cd /home/user/archlinux" before "sudo gainroot", or run "cd /home/user/archlinux" again after "exit".

BTW, you don't have to keep running the chmod commands anymore - if they worked once, and you haven't deleted those files since then, or overwritten them, the permissions (that's what chmod does - changes permissions) should remain set.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Posts: 94 | Thanked: 3 times | Joined on Jul 2010
#17
okay now that worked! thank you Mentalist! if you don't mind, can you help me on this part:


Code:

sudo cp /home/user/MyDocs/wmctrl /.archlinux/usr/bin
rm /home/user/MyDocs/wmctrl
cd archlinux
./chrootarch
cd /usr/bin
chmod +x wmctrl
touch /usr/bin/archlinux-e17
chmod +x /usr/bin/archlinux-e17
nano /usr/bin/archlinux-e17

copy this:

Code:

#!/bin/sh
#archlinux gui
cd /home/user/archlinux
./archlinux

up to the "nano /usr/bin/archlinux-e17", it launched the nano text editor. after typing in the code, i don't know how to copy it. how do i copy that code?
 
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#18
Not sure what you mean by "copy". After you've typed that code into the file that opens when you run the "nano /usr/bin/archlinux-e17", just save the resulting file. As I understand it, the directions you're following are just telling you to take the text:
Code:
#!/bin/sh
#archlinux gui
cd /home/user/archlinux
./archlinux
and then create a file /usr/bin/archilinux-e17 with those lines of code inside it. So when nano opens, just type those four lines of code in, and save the file.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Posts: 94 | Thanked: 3 times | Joined on Jul 2010
#19
ohh okay. to save the file i have to press Ctrl X right? the next step requires me to make a closearch file:

Make a closearch file

open a new xterminal and type this

Code:

sudo gainroot
cd /usr/bin
touch closearch
chmod +x closearch
nano closearch

Copy this
Code:

#!/bin/sh
# By Juand
sudo qumount /.archlinux

the problem i'm facing now is that whenever i type "nano closearch", it will say "nano: not found" instead of launching the nano text editor. how do i make that closearch file?
 
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#20
Hmmm... Well, it actually sounds like your command line isn't able to find the "nano" command for some reason - it sees the file, just doesn't see the program itself. I'm really not sure why that would be, assuming you're sure you typed everything correctly. Unless for some reason nano got uninstalled, or had it's binary renamed or deleted/moved? *Shrug* What do
Code:
ls -l /usr/bin/nano
and
Code:
dpkg -l | grep nano
give as output?
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:38.