Category "linux"

How to compile GTK2 source code?

I'm trying to modify GTK2 on Ubuntu Oneiric. I download the source: apt-get source libgtk2.0-0 cd gtk+2.0-2.24.6/ I try to compile and overwrite the current

How to compile GTK2 source code?

I'm trying to modify GTK2 on Ubuntu Oneiric. I download the source: apt-get source libgtk2.0-0 cd gtk+2.0-2.24.6/ I try to compile and overwrite the current

git clone and cd into it

If I wanted to make a directory and change directory into it all in one line, I could do something like this: mkdir dir_name && cd $_ How can I do the

GtkStatusIcon label in Gnome3

How can affect on my app's status icon label in Gnome3? When i moving cursor on it shows me my app's executable name. How can I change it?

Running gdb on xv6-riscv-fall19

So I follow the commands on the website. I open one windows and I used the command: sudo make qemu-gdb. And it asked me to use another terminal to start gdb.

building kernel module and resolve missing symbol definitions

If I build a module which depends on other modules, and i get this warning: 'function or symbol ?' [source dir/my_module.ko] undefined! What does the warn

Check whether a path is absolute or relative

How do you check whether a path is absolute or relative, using C on Linux?

How do you compare the value of an array to a variable in bash script?

I'm practicing bash and honestly, it is pretty fun. However, I'm trying to write a program that compares an array's value to a variable and if they are the same

How do you compare the value of an array to a variable in bash script?

I'm practicing bash and honestly, it is pretty fun. However, I'm trying to write a program that compares an array's value to a variable and if they are the same

How to check if ssh-agent is already running in bash?

I have a sample sh script on my Linux environment, which basically run's the ssh-agent for the current shell, adds a key to it and runs two git commands: #!/bi

MySQL upgrade fails on Ubuntu 16.04

I have Ubuntu 16.04 running (clean install - no upgrade). MySQL is running fine - but I get this error when I try to update MySQL: apt-get install Reading pack

grep search with regex

how to find a line that contains exactly 3 "w", 5 "t" and no "v" with grep? Input: ---------- aabbccddd4444 wccwwtttjjttuu zzxxxwwwmmmnnnn Expected output: --

kernel make error "arch/x86/entry/syscall_64.o:(.rodata+0x1120): undefined reference to"

This error stops my kernel make process ld: arch/x86/entry/syscall_64.o:(.rodata+0x1120): undefined reference to `__x64_sys_fd' BTF .btf.vmlinux.bin.o pahol

Can one specify a file content-type to download using Wget?

I want to use wget to download files linked from the main page of a website, but I only want to download text/html files. Is it possible to limit wget to text/

Why does codeigniter & Linux server throws unserialize() session data error when user tries to login

I am developing an app using CodeIgniter and I have deployed this app on a linux server, the issues I am facing is this error ERROR - 2022-01-06 11:48:16 -->

ssh-keygen - how to set an rsa key with a certain username

I just installed ubuntu and would like to set its rsa keys up with bitbucket/github. When I ssh-keygen the keys are generated as they should be ssh-rsa AA...yB

Force python to use an older version of module (than what I have installed now)

My employer has a dedicated module1 we use for internal unit / system test; however, the author of this module no longer works here and I have been asked to tes

gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now

I have a Bash script that creates a .tar.gz file, encrypts, and then sends it to a drive. However, I cannot open the .tar.gz file afterwards. Here is my process

Exploring Docker container's file system

I've noticed with docker that I need to understand what's happening inside a container or what files exist in there. One example is downloading images from the

Centos/Linux setting logrotate to maximum file size for all logs

we use logrotate and it runs daily ... now we have had some situations where logs have grown significantly (read: gigbaytes) and killing our server. So now we w