Hi to all!! I bought acer extensa 2509 with OS linpus linux v9.2, when appears this: "root@localhost / #", do you tell me what word I have to write, please?
Hi Guys,
i have this
Code:
uid=0(root) gid=0(root)
i would like to have the word "root" only from the first field, and later from the second field
i use the command
Code:
[root@v1-6 ~]# cat test-uid |cut -d"(" -f1
brms2
uid=0
[root@v1-6 ~]# cat test-uid |cut -d")" -f1
brms2
uid=0(root
it cut the word after the -d, how can i make it to cut the word BEFORE the -d
expected should be:
cut -d"(" -f1
root)
then i can proceed to eliminate the ) later on.
hope this is not confusing you guys
Thanks,
This is my absolute first time using Linux and I'm totally overwhelmed. I've created a bootable USB (using Unetbootin) and now I really don't know where to go. I've managed to get as far as being able to find the drive through GNU Grub but don't know what to do from there. (This is a new notebook with no other OS than Linpus Lite.) Do I need to install a UEFI first? Any (detailed) help is appreciated as I'm a total beginner... but determined! Thanks!
Hi All,
Not able to find TREE command in EL6, its working fine in EL5. Need help on this.
Below are the details.
[root@localhost ~]# mkdir -p /college/sports/performer/cricket
[root@localhost ~]# tree /college/
-bash: tree: command not found
[root@localhost ~]# tree college/
-bash: tree: command not found
[root@localhost ~]# which tree
/usr/bin/which: no tree in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin: /usr/bin:/root/bin)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
I have installed vsftp to the server , the status is running now , but when use the command "ftp localhost" , it pops the "421 Service not available." , would advise what is wrong ? thanks
bash-3.2# /etc/rc.d/init.d/vsftpd status
vsftpd (pid 580) is running...
bash-3.2# ps -ef |grep vsftpd
root 580 1 0 15:44 ? 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root 607 467 0 15:45 pts/0 00:00:00 grep vsftpd
bash-3.2# ftp localhost
Connected to localhost (127.0.0.1).
421 Service not available.
Hello everyone,
I recently started using "function" and "case" in linux but I came across a slight problem
My code:
Code:
function Return
{
echo $1
}
case "$1" in
"" ) echo "give parameters please";;
[0-9]* ) echo "No numbers please";;
* ) Return;;
So whenever the first parameter is a simple word I would like it returned, but it seems like there is no returned string (empty space)
Also I know I can just write "echo $1" instead of Return, but I'd like to use a function for this.
Can anyone tell me why the function doesn't return $1? Thanks!
I have install vsftpd and start it , but when when to try it by "ftp localhost" , but not work , would advise what is wrong ? thanks
#ps -ef |grep ftp
Code:
root 29896 1 0 10:53 ? 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root 29899 23821 0 10:53 pts/0 00:00:00 grep ftp
# ftp localhost
Code:
Connected to localhost (127.0.0.1).
421 Service not available.
My New ACER E5- 571 with Linpus Linux just got delivered and when I switched it on, it does not boot and shows some error.
neither does it boots from the optical drive.
Here is the picture of Failure.
https://dl.dropboxusercontent.com/u/...46467195_n.jpg
What do you think it could be, is it the problem with the HDD?
Hello, I hope someone can assist. I have installed 17 on 2 laptops and 17.1 on another all with windows 8 upgraded to 8.1 Now I have a new PC with 8.1 and cannot get 17.1 to install. I go thru all the steps but when I get past "something else" and choose the "free space" that I partitioned in windows and hit install the window pops up with "no root file system is defined" "Please correct from partitioning menu.. I have never had this happen, did I not do something? There is 1 300mb(fat32, efi) partition, ntfa, free space(which is where I am trying to install Linux), 1 small and 1 large "free space". Then the define for boot loader installation, which I do not remember needing to do before. Can someone please help. The PC is an Acer Aspire, amd10, 3.7ghz, quad core, radeon hd 8670 graphics , 1 terabyte hdd, 4gb ram, windows 8.1
Hi all,
I am trying to write a script that syncs files from source to destination. I have one centralized server that can ssh to any servers without pw. Now when I run the script, it can ssh to source server perfectly fine, but you need to enter password for destination server. Was wondering how I can clean this up before I start using case statements
Below is a sample I wrote
#!/bin/bash
#This scripts syncs shit
echo "Type in ID: "
read ID
echo "Type in Server : " #source server
read S
echo "Type in Destination Server: "
read DS
if [ $S == 9 ]; then
ssh -t "root@"$S"webserver1" "rsync -av /home/rlui/"$ID "root@"$DS"webserver2:/home/rlui/";
ssh -t "root@"$S"webserver1" "rsync -av /home/rlui/tmp/"$ID "root@sl"$DS"webserver2:/home/rlui/tmp/"
exit 1
where S and DS are cluster numbers
I apologize in advance if I am not clear on anything
Hi everybody,
I used to be a Linux developer, but I have not used Linux or anything UNIX-like for a long time (more than 10 years). I had it installed by someone else and assumed that the root password is not set. Turned out - it has been. I can logged in as "owner" because I have guessed the password ("password") but no such luck with root. Can anything (other than reinstallation) be done? Is there some default password that root gets at installation that someone at this forum knows? Any other suggestions?
Thank you in advance.
Roman