linux

Linux user group folder permissions

I have a basic linux file permissions question: I have a folder named test: $ ls -la drwxr-xr-x 5 root root 4096 2010-10-25 17:11 . drwxr-xr-x 17 root root 4096 2010-10-25 16:53 .. drw-rwS--- 3 root codedev 4096 2010-10-25 17:11 test In this folder (test) I want all users that are members of the group codedev to have read and...

Binary files Installation using YUM

Any one help me to create repository(yum)for binary files installation...I know how to configure yum for rpm files. Thanks in Advance ...

How to link shared libraries in local directory, OSX vs Linux

Hi, I have some shared/dynamic libraries installed in a sandbox directory. I'm building some applications which link agains the libraries. I'm running into what appears to be a difference between OSX and Linux in this regard and I'm not sure what the (best) solution is. On OSX the location of library itself is recorded into the library...

why smb returns NT_STATUS_INVALID_PARAMETER? How to fix smbclient?

Hi, I have a linux box that I use all the time and it always work with different machines. However, I also have a Windows box that is accessible from other windows box, but when I try access from the linux box I only get root@hosting02:/# smbclient -L //10.10.10.5 -U Admin Enter Admin's password: session setup failed: NT_STATUS_INVAL...

How am I supposed to interpret OProfile output?

I tried profiling my application with OProfile recently. The data gathered is already very valuable to me, but I'm having difficulties with its precise interpretation. After running my app with oprofile set up and running, I generated the report and got: root@se7xeon:src# opreport image:test -l -t 1 Overflow stats not available C...

Reshard existing large SVN repository

Hello, we have a a pretty large SVN repository (50 GB, Over 100000 revisions). Working with it is pretty slow and my guess is that the reason for this is the flat directory structure in db/revs and db/revprops (Where each revision is one file). We use the FSFS format with SVN 1.5 (On a linux server) but the repo was created with an old...

struggling with c++ IDE's on linux

hi I'm really frustrated, First I have no idea how to code the very complex (make files), so I'm using IDE's that would ease the job for me like (netbeans , eclipse ,Kdevelop .. etc) i almost tried every thing starting with Emacs (i'm very slow on it and I need autocompletion) Netbeans 6.9.1 (crashes , very slow editor,but amazing and...

How does the *NIX GUI work?

I would like to know more about what makes the GUI on *NIX systems work, but not quite sure where to begin the research. From my understanding, the X server is what makes all the visuals possible, and atop that there are the various UI environments like KDE, Gnome and others. But, for instance, I have always thought that running under ...

Java - RandomAccessFile (Emulating the Linux tail function)

http://stackoverflow.com/questions/557844/java-io-implementation-of-unix-linux-tail-f has a similar problem; but the solution is not viable for log files that generate about 50-100 lines per second. I have an algorithm that emulates the tail functionality in Linux. For example, File _logFile = new File("/tmp/myFile.txt"); long _filePtr...

Where does printk print to?

Hello guys, Just a quick question on printk function at the kernel level, if i call this where will the message be printed to.(im using ubuntu on i386 arch with the latest kernel downlaod) cant find it anywhere, if someone could also point me in the right direction for some sort of manual for the printk function it would be great! ...

Ubuntu mount -t command

I use following command to mount "/dev/sdb1" to "/storage" directory: mount -t ext3 /dev/sdb1 /storage After run above command, I can use "df -h" can see it: /dev/sdb1 147G 188M 140G 1% /storage But after i restart the server, it disappear, and i have to run mount command again. Is there a command that can keep the mou...

Where do i get the api for the linux kernel that would let me access information within the kernel

Hello guys, i am new to linux, i am after implementing a simple system call on the linux kernel that prints to the syslog via printk, i would like to be able to extend this application , so i can details on the battery percentage of my laptop or check the speed of the hard drive in the computer, could any of you give me a hand on whe...

Force `tee` to run for every command in a shell script?

I would like to have a script wherein all commands are tee'd to a log file. Right now I am running every command in the script thusly: <command> | tee -a $LOGFILE Is there a way to force every command in a shell script to pipe to tee? I cannot force users to add appropriate teeing when running the script, and want to ensure it log...

Is it possible to play a song in vlc player out of the command line?

Hi, is there a shell command in linux (for vlc media player) to open a *.mp3 file? Thank you very much ;D ...

Tracking outgoing http requests from a web server

Hi, I want track all outgoing HTTP requests from my server. Is there any easy way to do this? ...

simple game development on linux

Hello, everyone. I'd like to develop simple 2d games on linux. Something like one below. The only decent tecnology I've found was PyGame. Is there any other worth taking a look? Is there a possibility to develop flash games on linux? Thanks in advance. ...

possible to retrieve time left on a glib 'event?'

I am creating an event with g_timeout_add or g_timeout_add_seconds which returns an event id; I can cancel the event by calling g_source_remove. However, at some point what I would like to do is see how much time is remaining until the event is fired. Is there a simple way to do this with the glib api, or do I need to manually store an...

How should I store a AES Encryption Key?

I run a DV 3.5 server on MediaTemple with Linux CentOS 5, php and mysql DB and am trying to encrypt phone records with AES. I came across what seems to be good script as PHPAES but I am not sure of the following: Where do I actually store the AES Encryption key used to encrypt and decrypt the phone number? How do I call on the AES ...

Adding a "useful" syscall not normally available to a non-root user....

Hey guys, I've implemented a simple Hello World syscall with limited functionality - that simply transitions from user mode to kernel mode, prints a message that is logged with the kernel messages, and transitions back to user mode. The next step for extra credit is to add a useful (new) syscall that is not normally available to a non-...

Proper way to manage Daemons, Debian/Ubuntu Linux

What is the best way? Or at least... an easily managed one? I am routinely creating shell and python scripts that need to always be running in the background. Any recommendations on packages that simplify this? In the past I would stick a shell script in cron to check for the running process, but this feels like a hack. I recently re...