Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,204
» Latest member: cope9068@business-degree.live
» Forum threads: 4,028
» Forum posts: 16,403

Full Statistics

Online Users
There are currently 504 online users.
» 0 Member(s) | 502 Guest(s)
Bing, Google

Latest Threads
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 72,050
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 29,247
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,615
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,011
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 40,529
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 101,928
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 43,008
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 33,607
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 39,991
CentOS vs.?
Forum: Just Starting Linux
Last Post: volt
2020-08-06, 02:29 PM
» Replies: 0
» Views: 7,433

 
  Set chown and chmod in external HDD
Posted by: leonardo - 2010-10-29, 07:38 AM - Forum: How Do I? - Replies (17)


Hi at all,

 

I connected an external HDD. I need to set permissions, user and group. If I type commands chmod and chown I can not set them. How do I do?

 

If I type "fdisk -l" the result is:

 



Code:
255 heads, 63 sectors/track, 182401 cylinders
Unit  = cilindri di 16065 * 512 = 8225280 byte

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      182401  1465135448+   c  W95 FAT32 (LBA)




 

Thankyou in advance for your help and sorry for my English

Print this item

  Add Ubuntu 10.04 to my Grub menu?
Posted by: rwheelock83 - 2010-10-26, 09:50 AM - Forum: How Do I? - Replies (5)


Originally, I had 2 partitions/instances of Ubuntu 10.04 on my system. I then deleted what was the first installation/partition of Ubuntu in order to give Fedora 13 a try. Before installing Fedora, I verified that the Grub menu still came up and I could boot to the remaining Ubuntu OS.

 

After installing Fedora 13 on the space left from deleting the first Ubuntu partition, it initially boots up without even displaying a boot menu. I resolved that by changing timeout=10 in menu.lst. I located grub.cfg on the Ubuntu partition and found what I believe to be the pertinent information:

 



Code:
menuentry 'Ubuntu, with Linux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set bd9e9e70-5b02-437b-b277-8ffc0f30fbcd
linux    /boot/vmlinuz-2.6.32-25-generic root=UUID=bd9e9e70-5b02-437b-b277-8ffc0f30fbcd ro   quiet splash
initrd    /boot/initrd.img-2.6.32-25-generic




 

I realize the Fedora menu.lst is Grub while Ubuntu's grub.cfg is Grub2. I copied and pasted the above into menu.lst, and changed menuentry to title to follow the format for the Fedora entry. When I try to boot Ubuntu, it gives an error that the kernel must be loaded before initrd.

 

I assume the problem is resulting from the differences between Grub and Grub2. What else do I need to change to make this work?

 

Thanks!

Print this item

  Assigning permissions/ownership of a mounted network share?
Posted by: rwheelock83 - 2010-10-26, 09:23 AM - Forum: How Do I? - Replies (7)


By Googling around a bit, I was able to learn enough to add this line to my fstab file in my Fedora 13 system:

 



Code:
//192.168.1.101/e /mnt/e cifs auto,username=USER,password=*****,rw,umask=000,gid=500 0 0




 

Once I'm logged in, I notice (every time) that it has logged the following boot message:

 



Code:
Mounting CIFS filesystems:  mount error(101): Network is unreachable
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[FAILED]




However, the share is mounted and I can access files on it.

 

The error log doesn't bother me as much as the fact that my user account has read-only access to the share. I've tried messing with the umask and/or uid tag, but no luck as of yet. What's the best way to give a specific user (or even all users if that makes it simpler) full access to the share?

 

Thanks!

Print this item

  Remote SSH Commands
Posted by: rookiebeotch - 2010-10-25, 07:35 PM - Forum: Remote Access - Replies (3)


I am trying to remotely call a script file via ssh.

 

the server has a shell that is a custom program, lets call it shelly. There is also a script file on the server that needs to run when in shelly.

 

 

i can run the following after i ssh into the box, as root.

 

 



Code:
exec /usr/local/bin/shelly < /my_folder/custom_script




 

that works fine.

 

I need to be able to embed this in ssh. I have done so like this. I have shared keys so no password needed, and it works.

 

 



Code:
ssh user@server "exec /usr/local/bin/shelly < /my_folder/custom_script"




 

when i run this ssh command from my remote machine the commands are not executed from the script. So i run ssh in debug mode, and after a successful authentication i get a line that says:

 



Code:
Ssh2channelSession/SSHCHSESSION.C : bad data




 

and the connection begins to quit/close.

 

 

I don't understand what "Bad Data" error means, and i do not have this SSHCHSESSION.C file on my server.

 

Is Bad Data mean there is something wrong with the command? or is it a permissions problem on the server?

 

 

Any Ideas?

Print this item

  Need more disk space on / for yum to update?
Posted by: Neil - 2010-10-21, 12:10 PM - Forum: How Do I? - Replies (5)


Hi guys,

 

Whenever I try and update the server using yum, I get an error something like:

 



Code:
Transaction Check Error:
installing package nss-3.12.8-1.el5.centos.i386 needs 4KB on the / filesystem




 

Now I fixed this before by removing old kernel's, but there are only 2 at the moment (the one in use and a new one - waiting for a good time to reboot!)

 

Disk usage:

 



Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/md1               4956160   4947480         0 100% /
/dev/md3               4956224   1508680   3191716  33% /var
/dev/md2             271835552  55636240 202168148  22% /home
/dev/md0                 77649     18728     54912  26% /boot
tmpfs                  3911088         0   3911088   0% /dev/shm




 

Contents of /

 



Code:
ls / -al
drwxr-xr-x  24 root root  4096 Sep 30 11:05 .
drwxr-xr-x  24 root root  4096 Sep 30 11:05 ..
-rw-r--r--   1 root root     0 May 18 09:41 .autofsck
-rw-r--r--   1 root root     0 Jan 15  2010 .autorelabel
drwxr-xr-x   2 root root  4096 Oct 16 04:02 bin
drwxr-xr-x   5 root root  5120 Oct 15 11:18 boot
drwxr-xr-x  12 root root  4100 Oct 17 04:02 dev
drwxr-xr-x  82 root root 12288 Oct 21 04:02 etc
drwxr-xr-x  13 root root  4096 Oct 15 11:17 home
drwxr-xr-x  11 root root  4096 Oct 16 04:02 lib
drwxr-xr-x   7 root root  4096 Oct 16 04:02 lib64
drwx------   2 root root 16384 Jan 15  2010 lost+found
drwxr-xr-x   2 root root  4096 Jan 26  2010 media
drwxr-xr-x   2 root root     0 Aug 18 02:00 misc
drwxr-xr-x   3 root root  4096 Jan 26  2010 mnt
drwxr-xr-x   2 root root     0 Aug 18 02:00 net
drwxr-xr-x   3 root root  4096 Jan 26  2010 opt
dr-xr-xr-x 437 root root     0 May 18 10:40 proc
drwxr-x---   4 root root  4096 Oct 21 11:25 root
drwxr-xr-x   2 root root 12288 Oct 16 04:02 sbin
drwxr-xr-x   2 root root  4096 Jan 26  2010 selinux
drwxr-xr-x   2 root root  4096 Jan 26  2010 srv
drwxr-xr-x  11 root root     0 May 18 10:40 sys
drwxrwxrwt   3 root root 20480 Oct 21 11:33 tmp
drwxr-xr-x  14 root root  4096 May 17 14:05 usr
drwxr-xr-x  23 root root  4096 May 17 14:05 var




 

Is there a way I can give '/' more space safely? I'm not too sure I want to go delete stuff from there in case it has disastrous consequences...

 

Cheers

 

Neil

Print this item

  New Favicon?
Posted by: hybrid - 2010-10-20, 01:47 PM - Forum: Suggestion Box - Replies (3)


I just created a favicon for sister site Windows-Noob, because I noticed it was still using the default IPB favicon.

 

Here on the Linux side of things, we've traditionally had a set of favicons for many different distros which would rotate.

 

While the changing favicon is a cool idea, I like to keep sites in my bookmarks bar and quickly identify and access them by the favicon, and the L-N one does tend to change frequently so it's not as obvious which one it is.

 

I'd like to suggest moving to a single favicon so the site has a single visual identity when shown in bookmarks bars and so on, so I put together this 'hatch' design (based on the same Creative Commons G2 Tux images used in the header).

 

What do people think?

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/monthly_10_2010/post-1019-12875823818252.png" data-fileid="1288">[img]<fileStore.core_Attachment>/monthly_10_2010/post-1019-12875823818252.png[/img]</a>

 

--

 

linuxnoob_hatch_favicon.ico



Attached Files
.ico   linuxnoob_hatch_favicon.ico (Size: 1.33 KB / Downloads: 148)
.png   linuxnoob_hatch_favicon.png (Size: 765 bytes / Downloads: 307)
Print this item

  mirroring a webserver
Posted by: anyweb - 2010-10-13, 05:36 PM - Forum: LAMP - Replies (7)


hi guys, i'd like to (if possible) mirror my webserver setup (centos 5.5) so that it's running simultaneously on one server in Europe and one in the U.S. and any changes that happen on one will be mirrored on the other

 

the setup is all via rpm, and it's apache, mysql, php, there are two websites with databases to consider (this and another) and that's about it,

is it doable but more importantly is it hard to do ??? any tips/ideas/guides ?

Print this item

  Reacquainting Myself With Linux
Posted by: PHiSQuaRE - 2010-10-13, 04:42 PM - Forum: Just Starting Linux - Replies (5)

...

Print this item

  Dialing over wired connection
Posted by: vikash - 2010-09-29, 02:15 PM - Forum: Network Problems - Replies (4)

I am quite new to ubuntu, and i am using ubuntu 10.04. My ISP provides me a cable (Lan) to connecto to the net, In windows i just used to dial over a connection and provide my username and password. How can i dial a connection in ubuntu. Dialing takes place over lan cable (Not telephone line). plz help and i dont use any kind of router or modem, the line comes directly from ISP's pole.

Print this item

  Grub wont boot after a kernel upgrade
Posted by: EzMe - 2010-09-28, 08:50 AM - Forum: Gentoo - Replies (1)


Hi all,

 

I've got a weird problem with my gentooserver after upgrading my kernel with genkernel. For some reason it wont boot anymore. When i try to boot it says:

 



Code:
Grub loading Stage1.5
Grub loading, please wait...




 

Then grub hangs up indefinetely.

 

So, i booted from a gentoo liveCD, setted up my network and sshd and logged into it. After that:

 



Code:
swapon /dev/sda2
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf




 

then chroot to the system

 



Code:
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"




 

After that i updated /etc/mtab sinds Grub needs this:

 



Code:
cp /proc/mounts /etc/mtab




 

My partition table:

 



Code:
(chroot) livecd / # fdisk -l

Disk /dev/sda: 33.8 GB, 33820286976 bytes
255 heads, 63 sectors/track, 4111 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x277b277a

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           5       40131   83  Linux
/dev/sda2               6          37      257040   82  Linux swap / Solaris
/dev/sda3              38        4111    32724405   83  Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table
(chroot) livecd / #




 

After that i tried reinstalling Grub:

 



Code:
(chroot) livecd grub # grub-install /dev/sda
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/sdb
(chroot) livecd grub #




 

 

(/boot is on sda1)

 



Code:
grub
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub> quit




 

I wiped my MBR to make sure that the new info get's installed:

 



Code:
dd if=/dev/zero of=/dev/sda bs=446 count=1




 

But still the same problem.

 



Code:
(chroot) livecd / # grub --version
grub (GNU GRUB 0.97)




 



Code:
(chroot) livecd / # fdisk -l

Disk /dev/sda: 33.8 GB, 33820286976 bytes
255 heads, 63 sectors/track, 4111 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           5       40131   83  Linux
/dev/sda2               6          37      257040   82  Linux swap / Solaris
/dev/sda3              38        4111    32724405   83  Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table




 

/boot

 



Code:
total 7867
drwxr-xr-x  4 root root    1024 Sep 27 14:46 .
drwxr-xr-x 20 root root    4096 Mar 26  2010 ..
-rw-r--r--  1 root root 1444015 Sep 27 14:22 System.map-genkernel-x86-2.6.34-gentoo-r6
drwxr-xr-x  2 root root    1024 Sep 27 14:24 grub
-rw-r--r--  1 root root 3401991 Sep 27 14:22 initramfs-genkernel-x86-2.6.34-gentoo-r6
-rw-r--r--  1 root root 3154656 Sep 27 14:23 kernel-genkernel-x86-2.6.34-gentoo-r6
drwx------  2 root root   12288 Sep 27 14:12 lost+found




 

/boot/grub

 



Code:
total 231
drwxr-xr-x 2 root root   1024 Sep 27 14:24 .
drwxr-xr-x 4 root root   1024 Sep 27 14:46 ..
-rw-r--r-- 1 root root    197 Sep 27 14:18 default
-rw-r--r-- 1 root root     45 Sep 27 14:18 device.map
-rw-r--r-- 1 root root   8692 Sep 27 14:18 e2fs_stage1_5
-rw-r--r-- 1 root root   7820 Sep 27 14:18 fat_stage1_5
-rw-r--r-- 1 root root   7088 Sep 27 14:18 ffs_stage1_5
-rw-r--r-- 1 root root    271 Sep 27 14:26 grub.conf
-rw-r--r-- 1 root root   7088 Sep 27 14:18 iso9660_stage1_5
-rw-r--r-- 1 root root   8676 Sep 27 14:18 jfs_stage1_5
lrwxrwxrwx 1 root root      9 Sep 27 14:20 menu.lst -> grub.conf
-rw-r--r-- 1 root root   7292 Sep 27 14:18 minix_stage1_5
-rw-r--r-- 1 root root   9684 Sep 27 14:18 reiserfs_stage1_5
-rw-r--r-- 1 root root  33856 Sep 27 14:24 splash.xpm.gz
-rw-r--r-- 1 root root    512 Sep 27 14:18 stage1
-rw-r--r-- 1 root root 107808 Sep 27 14:18 stage2
-rw-r--r-- 1 root root   7344 Sep 27 14:18 ufs2_stage1_5
-rw-r--r-- 1 root root   6692 Sep 27 14:18 vstafs_stage1_5
-rw-r--r-- 1 root root   9524 Sep 27 14:18 xfs_stage1_5




 

grub.conf

 



Code:
default 0
timeout 10
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.34-gentoo-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.34-gentoo-r6 root=/dev/ram0 init=/linuxrc real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-2.6.34-gentoo-r6




 

fstab:

 



Code:
/dev/sda1               /boot           ext2            defaults,noatime        1 2
/dev/sda2               none            swap            swap            0 0
/dev/sda3               /               ext3            noatime         0 1

/dev/cdrom              /mnt/cdrom      auto            noauto,user     0 0

/dev/sdb                /home/big       auto            noatime         0 0

shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
proc                    /proc           proc            defaults                0 0




 

lspci:

 



Code:
(chroot) livecd / # lspci
00:00.0 Host bridge: Silicon Integrated Systems [siS] 645xx (rev 02)
00:01.0 PCI bridge: Silicon Integrated Systems [siS] Virtual PCI-to-PCI bridge (AGP)
00:02.0 ISA bridge: Silicon Integrated Systems [siS] SiS963 [MuTIOL Media IO] (rev 04)
00:02.1 SMBus: Silicon Integrated Systems [siS] SiS961/2 SMBus Controller
00:02.3 FireWire (IEEE 1394): Silicon Integrated Systems [siS] FireWire Controller
00:02.5 IDE interface: Silicon Integrated Systems [siS] 5513 [iDE]
00:02.7 Multimedia audio controller: Silicon Integrated Systems [siS] AC'97 Sound Controller (rev a0)
00:03.0 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f)
00:03.2 USB Controller: Silicon Integrated Systems [siS] USB 1.1 Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [siS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [siS] SiS900 PCI Fast Ethernet (rev 91)
00:07.0 RAID bus controller: Silicon Image, Inc. SiI 3512 [sATALink/SATARaid] Serial ATA Controller (rev 01)
00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1)




 

file -s /dev/sd*

 



Code:
livecd ~ # file -s /dev/sd*
/dev/sda:  x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 2: ID=0x82, starthead 0, startsector 80325, 514080 sectors; partition 3: ID=0x83, starthead 0, startsector 594405, 65448810 sectors, code offset 0x48
/dev/sda1: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, 1st sector stage2 0x9041, code offset 0x48
/dev/sda2: Linux/i386 swap file (new style) 1 (4K pages) size 64259 pages
/dev/sda3: x86 boot sector, LInux i386 boot LOader
/dev/sdb:  Linux rev 1.0 ext3 filesystem data (needs journal recovery) (large files)
livecd ~ #




 

No idea where to look for anymore :)YOu guys got any idea..? TIA!

 

Grt EzMe

Print this item