Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 months ago.
Improve this question
I'm trying to create a menu in the early config file of GRUB 2.04 in file early.cfg:
menuentry foo {
echo foo1
}
menuentry bar {
echo bar1
}
I'm building core.img with:
$ grub-mkimage -v -v -v -C xz -O i386-pc -p /prefix -o core.img -c early.cfg biosdisk part_msdos part_gpt luks linux16 gcry_rijndael gcry_sha512 gcry_sha256 lvm chain cpio gzio xzio search echo fat ext2 reiserfs btrfs zfs xfs ntfs ntfscomp
At boot time no filesystems are available (yet) to load grub.cfg from. When I boot, I get the grub> prompt.
How do I get to the menu? I tried typing normal + Enter, Esc, Esc, but it doesn't show me the menu, it just puts me back to the grub> prompt with the screen cleared.
Ultimately I'd like to activate the menu defined in the early config by default. How do I do that?
According to the GRUB2 manual, it's impossible to have menu entries in early.cfg:
The embedded configuration file may not contain menu entries directly, but may only read them from elsewhere using configfile.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Trying to save the captured web traffic of the raw HTTP request/response while using mitmproxy:
Followed https://github.com/mitmproxy/mitmproxy/blob/main/examples/contrib/jsondump.py with
mitmproxy -s /pkg/mitmproxy/jsondump.py, and with
$ cat ~/.mitmproxy/config.yaml
dump_destination: "/tmp/mitmproxy.log.json"
But my "/tmp/mitmproxy.log.json" was never written to.
Then tried mitmproxy -w outfile as per Dump packets collected with mitmproxy, but the output is not in JSON format
Then tried mitmproxy -s /pkg/mitmproxy/jsondump.py -w outfile and the output is still not in JSON format.
Mitmproxy currently has no JSON export. We're tentatively planning to support HAR export soon though. There's a community-contributed example for this here, which I think is in better shape than the jsondump one: https://github.com/mitmproxy/mitmproxy/blob/main/examples/contrib/har_dump.py
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am trying to publish a file on my ipfs node. In order to do so I use the following commands:
ipfs add someFile.txt
// added <someHash> someFile.txt
ipfs name publish <someHash>
// Published to <notPeerID>: /ipfs/<someHash>
I get the weird behavior that ipfs name publish does not use the peerID to publish the file to. It is not the peerID ipfs id returns. Also does not look like a normal ipfs hash either, it does not start with 'Qm' but 'k'. Anyone have an idea what I could try to fix that?
As of go-ipfs 0.7, IPNS paths encode the key name as a base36 CIDv1 (k...) instead of base58 (Qm...).
You can read more about this here - there's a section on exactly this change: https://blog.ipfs.io/2020-09-24-go-ipfs-0-7-0/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I have a VirtualBox virtual machine that I wanted to rename. I tried by editing my config file, and when that broke things, I searched and found you don't want to be editing VirtualBox configuration files with Vim: you only want command line and GUI files.
I have what I am pretty sure is the exact disk, unmodified apart from possibly having the UUID changed from a VirtualBox command line files.
How can I create / restore / modify / ... a virtual machine with VirtualBox that will have my .vdi file as its disk?
You should be able to create a new Virtual Machine and set the .vdi as its hard disk.
https://blogs.oracle.com/oswald/importing-a-vdi-in-virtualbox
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm trying to login into my phpmyadmin but it keep getting redirected to the login page. I know user and password are correct because my website is still working properly and I can even connect to mysql using putty.
I noticed I'm getting "Cant create/write to file '/tmp/XXXXXXX' Errcode28" on one of my tables which apparently means lack of disk space so I deleted all the rows but it didn't resolve the issue.
I used df -h command and it says I have only used 13% of /dev/vdal1.
I don't even know where to start. Has anyone experienced this before?
Ok for all those out there feeling helpless like me here is the solution:
SSH to your server
type df -i to see if your inode usage is full if yes
type cd/
type this:echo -e "Inode count forpwd:\n"; /bin/ls -A|awk '{print "count=find \""$0"\"|wc -l; echo \""$0" \t\t $count\""}'|sh|awk '$NF != "1" {inode=$NF;$NF="";print "printf \"%-50s %8d\\n\" \""$0"\" \""inode"\""}'|sh && printf "%-50s %8d\n" "Total:" "find ${pwd}|wc -l"
this shows you which directory is using that space the most.
cd into that directory and repeat step 4 and 5 until you get to the directory that has the highest usage
clear as much as you can in that directory
reboot
enjoy :)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am currently tasked to create an NPAPI plugin. And I've read that it will be better to do it with firebreath. The problem is I don't know how to start a project. So I researched and found a tutorial from firebreath.org. But when I tried what he had done in the tutorial, I can't do it. He used CMD to retrieve the source code for firebreath. The command was "git clone git://github.com/firebreath/FireBreath firebreath"... In the tutorial it retrieved the source code.. in my case it returned an error... saying git is not a recognized batch command... any ideas what happened? thanks :D
You need to install git. If you need help with that, it's probably a question for superuser.com, since it's not really a programming question.
You can either install Git from here or simply download the firebreath zip file. Once you've done that, follow the instructions as in this answer: How is an ActiveX wrapper created with FireBreath?
As Taxilian says, git has to be in your system path (environment variables of Windows) if you want to use git from the commandline. Setting/adding the path happens during the installation of git.
If 'git' is not recognized in windows even after adding to the system path try using Git for Windows which provides 'Git Bash' (a command prompt like interface) which is convenient for using git by commands.